package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);

    void add(Member member);
    //查询前一年会员
    Map getMemberReport() throws Exception;
    //自定义时间查询
    Map getMemberReportByDays(String start, String end) throws Exception;
    //会员年龄饼状图
    Map getMemberReportByAge();
    //会员男女饼状图
    Map getMemberReportBySex();
}
